package com.yuxi.controller.manager;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import com.yuxi.pubInter.exception.SkException;
import com.yuxi.pubInter.IBaseService;
import com.yuxi.pubInter.RestfulController;
import com.yuxi.dto.GroupRightsDTO;
import com.yuxi.dto.GroupRightsPageDTO;
import com.yuxi.modelExt.GroupRightsExt;
import com.yuxi.searchExt.GroupRightsSearchExt;
import com.yuxi.service.IGroupRightsService;
import com.yuxi.vo.GroupRightsDetailVO;
import com.yuxi.vo.GroupRightsListVO;
import com.yuxi.vo.GroupRightsDomainVO;
import com.yuxi.vo.GroupRightsDetailDomainVO;

import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import com.yuxi.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:18
*    @description GroupRightsController      权限组权限关联
*/
@Api(tags = "后台管理系统-权限组权限关联相关", description = "权限组权限关联相关接口")
@RestController(value ="groupRightsRestfulController")
@RequestMapping("/manager/groupRights/")
@Validated
public class GroupRightsController extends ApiManageController<GroupRightsDTO,GroupRightsPageDTO,GroupRightsExt, GroupRightsSearchExt,GroupRightsDomainVO,GroupRightsDetailDomainVO,GroupRightsDetailVO,GroupRightsListVO,String> {

	@Resource(name = "groupRightsService")
	private IGroupRightsService groupRightsService;



	@Override
	public IBaseService<GroupRightsExt, GroupRightsSearchExt,String> getBaseService() throws SkException {
		return groupRightsService;
	}

	@Override
	public String getBaseRoute() {
		return "/manager/groupRights/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "权限组权限关联";
	}



	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(group_rights.gr_id) as countNum");
		return totalMapSet;
	}


}